import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    // 模型列表
    getModelList: {
        url: '/macro-library/model/endpoint/v1/list',
        method: 'get'
    },
    //模版版本列表
    getVerList: {
        url: '/macro-library/model/endpoint/v1/version-list',
        method: 'get'
    },
    //上传模型-保存
    saveMode: {
        url: '/macro-library/model/endpoint/v1/save-model',
        method: 'post'
    },
    //编辑模型
    editMode: {
        url: '/macro-library/model/endpoint/v1/update',
        method: 'post'
    },
    //更新模型
    updateMode: {
        url: '/macro-library/model/endpoint/v1/version-save',
        method: 'post'
    },
    //模型文件上传
    modelFieldUpload: {
        url: '/macro-library/model/endpoint/v1/upload',
        method: 'post'
    }
}
export default openBuildService(settings)